3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next
QuickDraw 3D provides routines that you can use to create and manipulate triangles. See "Triangles" for the definition of a triangle.
You can use the Q3Triangle_New function to create a new triangle.
TQ3GeometryObject Q3Triangle_New (
const TQ3TriangleData *triangleData);
You can use the Q3Triangle_Submit function to submit an immediate triangle for drawing, picking, bounding, or writing.
TQ3Status Q3Triangle_Submit (
const TQ3TriangleData *triangleData,
TQ3ViewObject view);
The Q3Triangle_Submit function submits for drawing, picking, bounding, or writing the immediate triangle whose shape and attribute set are specified by the triangleData parameter. The triangle is drawn, picked, bounded, or written according to the view characteristics specified in the view parameter.
You can use the Q3Triangle_GetData function to get the data that defines a triangle and its attributes.
TQ3Status Q3Triangle_GetData (
TQ3GeometryObject triangle,
TQ3TriangleData *triangleData);
You can use the Q3Triangle_SetData function to set the data that defines a triangle and its attributes.
TQ3Status Q3Triangle_SetData (
TQ3GeometryObject triangle,
const TQ3TriangleData *triangleData);
You can use the Q3Triangle_EmptyData function to release the memory occupied by the data structure returned by a previous call to Q3Triangle_GetData .
TQ3Status Q3Triangle_EmptyData (TQ3TriangleData *triangleData);
You can use the Q3Triangle_GetVertexPosition function to get the position of a vertex of a triangle.
TQ3Status Q3Triangle_GetVertexPosition (
TQ3GeometryObject triangle,
unsigned long index,
TQ3Point3D *point);
You can use the Q3Triangle_SetVertexPosition function to set the position of a vertex of a triangle.
TQ3Status Q3Triangle_SetVertexPosition (
TQ3GeometryObject triangle,
unsigned long index,
const TQ3Point3D *point);
You can use the Q3Triangle_GetVertexAttributeSet function to get the attribute set of a vertex of a triangle.
TQ3Status Q3Triangle_GetVertexAttributeSet (
TQ3GeometryObject triangle,
unsigned long index,
TQ3AttributeSet *attributeSet);
The Q3Triangle_GetVertexAttributeSet function returns, in the attributeSet parameter, the set of attributes for the vertex having the index specified by the index parameter in the vertices array of the triangle specified by the triangle parameter. The reference count of the set is incremented.
You can use the Q3Triangle_SetVertexAttributeSet function to set the attribute set of a vertex of a triangle.
TQ3Status Q3Triangle_SetVertexAttributeSet (
TQ3GeometryObject triangle,
unsigned long index,
TQ3AttributeSet attributeSet);
Previous | QD3D Book | Overview | Chapter Contents | Next